<?php

/**
 * Class Core_Filter_Array
 *
 * @package Core
 */
class Core_Filter_Array implements Core_Filter_Interface
{
    public $filter;

    public function __construct(Core_Filter_Interface $filter) {
        $this->filter = $filter;
    }

    public function execute ($data)
    {
        return array_map(array($this->filter, 'execute'), (array)$data);
    }
}